home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'AHMTFormAspect.pas' rev: 3.00
-
- #ifndef AHMTFormAspectHPP
- #define AHMTFormAspectHPP
- #include <AHMTFormHook.hpp>
- #include <AHMSystem.hpp>
- #include <Windows.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <SysUtils.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Ahmtformaspect
- {
- //-- type declarations -------------------------------------------------------
- typedef void __fastcall (__closure *TAHMOnClientModified)(System::TObject* Sender, int &X, int &Y);
-
- typedef void __fastcall (__closure *TAHMBeforeResizing)(System::TObject* Sender, Windows::TRect &R);
-
-
- class DELPHICLASS TAHMFormAspect;
- class PASCALIMPLEMENTATION TAHMFormAspect : public Ahmtformhook::TAHMHookComponent
- {
- typedef Ahmtformhook::TAHMHookComponent inherited;
-
- private:
- TAHMOnClientModified FOnClientModified;
- TAHMBeforeResizing FBeforeResizing;
- int FAspectX;
- int FAspectY;
- bool FEnabled;
- bool FClient;
-
- public:
- __fastcall virtual TAHMFormAspect(Classes::TComponent* AOwner);
- __fastcall virtual ~TAHMFormAspect(void);
- virtual void __fastcall Loaded(void);
- virtual void __fastcall Hooked(Messages::TMessage &AMsg);
- virtual void __fastcall EstablishAspectRatio(Word Side, Windows::TRect &Rect);
-
- __published:
- __property bool Enabled = {read=FEnabled, write=FEnabled, default=1};
- __property int RatioWidth = {read=FAspectX, write=FAspectX, default=1};
- __property int RatioHeight = {read=FAspectY, write=FAspectY, default=1};
- __property bool Client = {read=FClient, write=FClient, default=1};
- __property TAHMOnClientModified OnClientModified = {read=FOnClientModified, write=FOnClientModified
- };
- __property TAHMBeforeResizing BeforeResizing = {read=FBeforeResizing, write=FBeforeResizing};
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Ahmtformaspect */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Ahmtformaspect;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // AHMTFormAspect
-